package com.dule.Medic.pages;

import org.apache.tapestry5.annotations.BeginRender; 
import org.apache.tapestry5.annotations.Property; 
import org.apache.tapestry5.annotations.SessionState;

import com.dule.Medic.model.Doctor;

public class DoctorInfo 
{
	@SuppressWarnings("unused")
	@Property      
	@SessionState      
	private Doctor doctor;    
	private boolean doctorExists;          
	
	public Object onActivate()
	{      
		if(doctorExists)
		{                
			return null;      
		}          
		return FirstPage.class;   
	}      
	@BeginRender     
	public void setUp()
	{                           
		
	}  

}
